// api.js
import request from '@/utils/request.js';

// 登录和注册共用接口
export const userLogin = (data) => {
    return request({
        url: '/login/userLogin',
        method: 'POST',
        data
    });
};

export const userUpdatePass = (data) => {
    return request({
        url: '/login/userUpdatePass',
        method: 'POST',
        data
    });
};

export const userUpdateType = (data) => {
    return request({
        url: '/login/userUpdateType',
        method: 'POST',
        data
    });
};

// 新增：浏览器注册状态检查API
export const checkBrowserRegistration = () => {
    return request({
        url: '/login/checkBrowserRegistration',
        method: 'GET'
    });
};